package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

/**
 * 平安报送实体类
 * @author wn
 * @date 2020/07/16
 */
@Data
@Document(collection = "Usual")
public class Usual extends BaseModel {
    @Id
    @PrimaryKey
    private String _id;
    @Field("UsualCode")
    private String usualCode;
    @Field("RealName")
    private String realName;
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("ReligionCode")
    private String religionCode;
    @Field("ReligionName")
    private String religionName;
    @Field("UserTitle")
    private String userTitle;//主题
    @Field("State")
    private String state;//状态：平安 未上报
    @Field("Time")
    private LocalDateTime time;//上报日期
}
